package com.xh.bussiness.tiku.bean.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 保存知识点bean
 * @author pitt
 */
@Data
@ApiModel
public class SaveKnowledgeRequest {

    @ApiModelProperty("知识点id")
    private String id;

    /**
     * 所属学科
     */
    @ApiModelProperty("所属学科")
    @NotNull(message = "学科不能为空")
    private String subject;

    /**
     * 父节点id
     */
    @ApiModelProperty("父节点id")
    private String parentId;

    @ApiModelProperty("父节点路径id")
    private String parentPath;

    @ApiModelProperty("父节点路径名称")
    private String parentPathName;

    /**
     * 知识点名称
     */
    private String knowledgeName;

    /**
     * 序号
     */
    private Integer sortIndex;

}
